package org.sucri.floxs.ext.data;

import org.sucri.floxs.ext.JsonConfig;
import org.sucri.floxs.utils.Json_Util;

/**
 * Created by IntelliJ IDEA.
 * User: Wen Yu
 * Date: Jul 15, 2007
 * Time: 11:14:24 PM
 * To change this template use File | Settings | File Templates.
 */
public class HttpProxy extends JsonConfig implements Proxy
{
  private static final String URL = "url";

  public HttpProxy(String s) { super(); setUrl(s); }
  
  public void setUrl(String s) { mProperties.put(URL, s); }

  public String construct()
  {
    return Json_Util.newJs("Ext.data.HttpProxy", Json_Util.toJSONString(mProperties));
  }

  public String toString() { return construct(); }  
}
